package Utils;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;


/**
 * Created by 80736 on 2017/7/4.
 */
public class MyLogs {
    private static Logger logger =null;

    /**
     * 加载项目根目录下的log4j配置文件
     */
    public static Logger getLogger(){
        PropertyConfigurator.configure(Config.LOG4J_FILE_PATH);
        logger = Logger.getRootLogger();
        return logger;
    }

}
